﻿using MobilTomegSzerverDB;
using MobilTomegSzerverWCF.ServiceObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace MobilTomegSzerverWCF
{
    [ServiceContract]
    public interface IRemoteMobile
    {
        [OperationContract]
        MoveObject[] Move(MoveObject data);
        //[OperationContract]
        //string[][] Move2(string[] data); //koordináta, járat, esemény, hír
        //[OperationContract]
        //string[][] Wait2(string[] data); //járat
        [OperationContract]
        MoveObject[] Wait(string[] route, string news);

        [OperationContract]
        string StartTravel();
        [OperationContract]
        void StopTravel(string jarat, string guid);

        [OperationContract]
        bool Ping();

        [OperationContract]
        string[] GetSettings(string DeviceID, string LiveID = "");
        [OperationContract]
        bool SetSettings(string[] data);

        [OperationContract]
        string[] GetFavs(string DeviceID, string LiveID = "");
        [OperationContract]
        bool AddFav(string[] data);

        [OperationContract]
        string[][] GetNews();
        [OperationContract]
        string[][] GetNewsJ(string jarat);
        [OperationContract]
        bool AddNew(string[] data);

        [OperationContract]
        string[][] GetTravels(string DeviceID, string LiveID = "");
        [OperationContract]
        bool AddTravel(string[][] data);

        [OperationContract]
        CheckUpdateObject CheckUpdate();
        [OperationContract]
        string[][] Update(string table);

        [OperationContract]
        a_favs teszt(stops f);

    }
}
